﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Repositories.Models
{

    public class BankCard
    {

        [Key()]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string BankCardId { get; set; }
        
        public string UserId { get; set; }

        public string Holder { get; set; }

        public string Number { get; set; }

        public string Type { get; set; }

        public string BankId { get; set; }

        public virtual ApplicationUser User { get; set; }

        public virtual Bank Bank { get; set; }

        public BankCard()
        {
            this.BankCardId = Guid.NewGuid().ToString();
        }

    }

}